package com.ksm.zyz.common.base;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 抽象实现类
 * @author litao
 *
 * @param <T>
 * @param <E>
 */
@Service("TongBubaseService")
public abstract class TongBuBaseServiceImpl<T, E> implements TongBuBaseService<T,E> {

	/**
	 * 抽象方法
	 * @return
	 */
	@Autowired
	protected TongBuBaseMapper<T,E> baseMapper;
	
	
	public Integer selectAllCount(){
		return baseMapper.selectAllCount();
	}
	
	 public List<E> selectAllInfo(T obj){
		 return baseMapper.selectAllInfo(obj);
	 }
	 public E selectInfo(T obj){
		 return baseMapper.selectInfo(obj);
	 }
	 public int updateInfo(E obj)

	 {
		 return baseMapper.updateInfo(obj);	 
	 }
	 public int insert(E obj)
	 {
		 return baseMapper.insert(obj);
	 }
	 public int delete(E obj)
	 {
		 return baseMapper.delete(obj);
				 
	 }

}
